<!DOCTYPE>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <title>投稿审核</title>
    <link rel="icon" type="image/x-icon" href="/static/images/logoIcon.icon">
    <link rel="stylesheet" href="/static/css/blog.css">
</head>

<body>
<!-- 头部导航条 -->
<div id="nav">
    <div class="heard">
        <div class="logo">
            <p>ITArmy后台管理</p>
        </div>
        <a href="/user/sign" class="signout">退出</a>
        <a href="/user/index" class="signout">主页</a>
    </div>

</div>
<!-- 侧边栏 -->
<div id="aside">
    <div class="menu">
        <ul>
            <li>
                <a href="/admin/Blog/list">博客管理&nbsp;<img src="/static/images/blog.svg" /></a>
            </li>
            <li>
                <a href="/admin/Type/list">博客类型&nbsp;<img src="/static/images/kind.svg"/></a>
            </li>
            <li>
                <a href="/admin/Serialize/list">连载管理&nbsp;<img src="/static/images/stroy.svg" /></a>
            </li>
            <li>
                <a href="/admin/Order/list">订单管理&nbsp;<img src="/static/images/order.svg" /></a>
            </li>
            <li>
                <a href="/admin/User/list">用户管理&nbsp;<img src="/static/images/user.svg" alt="" /></a>
            </li>
            <li>
                <a href="/admin/Question/list">问题管理&nbsp;<img src="/static/images/question.svg" /></a>
            </li>
            <li>
                <a href="/admin/Exchange/list">汇率管理&nbsp;<img src="/static/images/rate.svg" alt="" /></a>
            </li>
            <li class="active">
                <a href="/admin/ContributeAudit/list">投稿审核&nbsp;<img src="/static/images/word.svg"></a>
            </li>
        </ul>
    </div>
</div>
<div class="fill">
    <table class="table table-bordered">
        <thead class="heard">
        <tr>
            <th>投稿审核</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>
                <form class="navbar-form navbar-left" role="search">
                    筛选：&nbsp;<input type="text" placeholder="根据连载ID查询" id="search">
                    <input type="button" id="lookfor" value="查询">
                    <input type="button" id="back" value="返回">
                </form>
            </td>
        </tr>
        </tbody>
    </table>
    <table id="employeeTable">
        <tr >
            <th>连载Id</th>
            <th>用户Id</th>
            <th>连载标题</th>
            <th style="width: 170px;">发表时间</th>
            <th>点赞量</th>
            <th>评论量</th>
            <th>阅读量</th>
            <th>收藏量</th>
            <th>打赏金币</th>
            <th>价格</th>
            <th>类型</th>
            <th>推荐状态</th>
            <th>操作</th>
        </tr>
        <tr>
        <tr th:each="Serialize:${SerializeList.list}">
            <td th:text="${Serialize.sId}"></td>
            <td th:text="${Serialize.uId}"></td>
            <td th:text="${Serialize.sTitle}"></td>
            <td th:text="${#dates.format(Serialize.sTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${Serialize.sPraise}"></td>
            <td th:text="${Serialize.sComment}"></td>
            <td th:text="${Serialize.sRead}"></td>
            <td th:text="${Serialize.sCollection}"></td>
            <td th:text="${Serialize.sContribute}"></td>
            <td th:text="${Serialize.sPrice}"></td>
            <td th:text="${Serialize.tId}"></td>
            <td th:text="${Serialize.sRecommend}" style="color: red;"></td>
            <td>
                <button class="delate btn btn-danger">通过</button>
                <button class="detail btn btn-info">不通过</button>
            </td>
        </tr>
    </table>
    <div class="page" th:if="${SerializeList.pages>0}"><!--分页-->
        <ul class="pageUl">
            <li class="pageLi"><a th:href="@{'/admin/ContributeAudit/list?page=1'}">首页</a></li>
            <li class="pageLi" th:if="${SerializeList.pageNum-3 >=1}"><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum-3}}" th:text="${SerializeList.pageNum -3}" >1</a></li>
            <li class="pageLi" th:if="${SerializeList.pageNum-2 >=1}"><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum-2}}" th:text="${SerializeList.pageNum -2}" >1</a></li>
            <li class="pageLi" th:if="${SerializeList.pageNum-1 >=1}"><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum-1}}" th:text="${SerializeList.pageNum -1}" >1</a></li>
            <li class="pageLi active1"><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum}}" th:text="${SerializeList.pageNum}" ></a></li>
            <li th:if="${SerializeList.pageNum+1} <= ${SerializeList.pages}" ><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum+1}}" th:text="${SerializeList.pageNum +1}" >1</a></li>
            <li th:if="${SerializeList.pageNum+2} <= ${SerializeList.pages}" ><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum+2}}" th:text="${SerializeList.pageNum +2}" >1</a></li>
            <li th:if="${SerializeList.pageNum+3} <= ${SerializeList.pages}" ><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum+3}}" th:text="${SerializeList.pageNum +3}" >1</a></li>
            <li th:class="${SerializeList.pageNum == SerializeList.pages}?'disabled' : ''" ><a th:href="@{'/admin/ContributeAudit/list?page=' + ${SerializeList.pageNum+1}}">下一页</a></li>
        </ul>
    </div>
</div>

</body>

</div>
</div>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/static/js/Contribute.js"></script>
</body>

</html>